package entiy;

import android.graphics.Rect;

import com.example.wyy.R;

import java.util.ArrayList;
import java.util.List;

public class Rec {
    private int img;
    private String desc;

    public static int []imgs = new int[] {
            R.mipmap.img_1,R.mipmap.img_2,R.mipmap.img_3,R.mipmap.img_4,R.mipmap.img_5,
            R.mipmap.img_6,R.mipmap.img_7,R.mipmap.img_8,R.mipmap.img_9,R.mipmap.img_10
    };
    public static String [] descs = new String[] {
        " 好听到耳朵怀孕的热歌精选"," 听完也该释怀了吧" ,"00国产童年动画主题曲", "爱久了也许会分开",
        "无法替代那份最初的情怀","那些火爆全网的超好听的歌曲","华语精选", "我向来做事十拿九稳","你开始懂得了",
            "如果那天电话有接通"
    };
    public static List<Rec> getDefautRec(){
        List<Rec> recs = new ArrayList<>();
        for ( int i = 0; i < imgs.length; i ++){
            Rec rec = new Rec();
            rec.desc = descs[i];
            rec.img = imgs[i];

            recs.add(rec);
        }
        return recs;
    }
    public int getImg() {
        return img;
    }

    public void setImg(int img) {
        this.img = img;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
